package com.stu.demo.neo4j.service.people;

import com.stu.demo.neo4j.node.PeopleNode;
import com.stu.demo.neo4j.node.relation.NRelation;
import com.stu.demo.neo4j.node.relation.Operate;

import java.util.List;

public interface PeopleService {

    int createNode(PeopleNode node) throws Exception;

    int createRelation(PeopleNode parentNode, PeopleNode childNode) throws Exception;

    int delNode(PeopleNode node, Operate operate) throws Exception;

    PeopleNode updateNode(PeopleNode node) throws Exception;

    NRelation queryRelationById(PeopleNode parentNode, PeopleNode childNode) throws Exception;

    PeopleNode queryNodeById(PeopleNode node) throws Exception;

    List<PeopleNode> queryNode(PeopleNode node) throws Exception;

    List<PeopleNode> queryNodeAndRelation(NRelation relation) throws Exception;
}
